﻿using ProtobufNetShared;

namespace ProtobufNetService.Services
{
    public class OrderService : IOrderService
    {
        public CreateResult CreateOrder(CreateRequest request)
        {
            return new CreateResult
            {
                Result = true,
                Message = "订单创建成功",
            };
        }

        public QueryResult QueryOrder(QueryRequest request)
        {
            return new QueryResult 
            {
                Id = request.Id,
                OrderNo = DateTime.Now.ToString("yyyyMMddHHmmss"),
                OrderName = "冰箱",
                Price = 1288
            };
        }
    }
}
